package com.cmy.webCore.query;

import com.cmy.common.constant.Constant;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author:Cmy
 * @Date:2023-11-08 9:34
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//解决 子类判断equals 和 父类无关的问题
@EqualsAndHashCode(callSuper = true)
public class PageWithTimeQuery extends PageQuery{

    @JsonFormat(pattern = Constant.COMMON_TIME_PATTERN)
    private LocalDateTime startTime;

    @JsonFormat(pattern = Constant.COMMON_TIME_PATTERN)
    private LocalDateTime endTime;

}

    